MCQ Answer

If a=(1,2,3,4), a[1:-1] is _________

If a=(1,2,3,4), a[1:-1] is _________

यदि a = (1,2,3,4), एक [1: -1] _________ है
Topic : Sequence data types in python

A. Error, tuple slicing doesn’t exist एरर,टप्पल स्लाइसिंग मौजूद नहीं है

B. [2,3]

C. (2,3,4)

D. (2,3)




Correct Answer is :

D. (2,3)



Explanation
Tuple slicing exists and a[1:-1] returns (2,3).
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad